package com.example.officialdocumentsys.common;

public class ThreadLocalContext {
    //同一线程传参
    private static  ThreadLocal<Long> threadLocal = new ThreadLocal<>();
    public static void setCurrentId(Long id){
        threadLocal.set(id);
    }
    public static Long getCurrentId(){
        return threadLocal.get();
    }
}
